package com.googlecode.gwt4gae.client;

import com.extjs.gxt.ui.client.mvc.Dispatcher;
import com.google.gwt.core.client.EntryPoint;
import com.googlecode.gwt4gae.client.home.HomeAction;
import com.googlecode.gwt4gae.client.menu.MenuAction;
import com.googlecode.gwt4gae.client.user.UserAction;
import com.googlecode.gwt4gae.client.welcome.WelcomeAction;

public class Gwt4gaeEntryPoint implements EntryPoint {

	public void onModuleLoad() {
		Dispatcher dispatcher = Dispatcher.get();
		dispatcher.addController(new HomeAction());
		dispatcher.addController(new MenuAction());
		dispatcher.addController(new WelcomeAction());
		//注册业务action
		ActionRegistry.registAction(new UserAction());
		
		dispatcher.dispatch(AppEvents.HOME);
	}

}
